package com.mapzone.showmap;

import android.graphics.Canvas;


public class NDK_Function {
	private MapView mv;
	public native void init_ndk( int dpix, int dpiy );
	public native boolean open_map_doc( String map_path );
	public native void zoom_out(  );
	public native void zoom_in(  );
	public native void region_zoom_out(  );
	public native void region_zoom_in(  );
	public native void pan( );
	public native void select( );
	public native void clear_selection( );
	public native void entire();
	
	
	public native void on_touch_down( float x, float y );
	public native void on_touch_move( float x, float y );
	public native void on_touch_up( float x, float y );
	public native void on_touch_double_click( float x, float y );
	
	public native void set_window( Canvas canvas );
	public native void draw( Canvas canvas );
	
	public void Invalidate( int flag )
	{
		mv.invalidate( );
	}
	
	public void set_mv( MapView mv )
	{
		this.mv = mv;
	}
	
	static
	{
		System.loadLibrary( "foundation" );
		System.loadLibrary( "mathlib" );
		System.loadLibrary( "geos" );
		System.loadLibrary( "spatialreference" );
		System.loadLibrary( "geometry" );
		System.loadLibrary( "spatialdatabase" );
		System.loadLibrary( "gdl" );
		System.loadLibrary( "shared" );
		System.loadLibrary( "display" );
		System.loadLibrary( "symbol" );
		System.loadLibrary( "curl" );
		System.loadLibrary( "carto" );
		System.loadLibrary( "undo" );
		System.loadLibrary( "oui" );
		System.loadLibrary( "mapzone_ndk" );
		
//		System.loadLibrary( "location" );
	}

}
